const Router = require('koa2-router')
const homeController = require('./controller/home')
const userController = require('./controller/user')
const router = new Router()
router.get('/:id',homeController.testFunController)
router.post('/add',userController.addUesrController)
router.delete('/delete/:id',userController.deleteUserController)
router.put('/put/:id',userController.putUserController)

// router.get('/user/getList',userController.getListController)
// router.post('/user/addUserList',userController.addUserListController)

console.log('运行成功')
module.exports = router